<h4>Default Taskgroups</h4>

<table width="100%" id="example" class="table table-hovered">
<thead>
  <tr>
    <th>Name</th>
    <th>Description</th>
    <th>Created on</th>
    </tr>
  </thead>
  <?php foreach($taskgroups as $taskgroup) {?>
  <tr>
    <td><?= $taskgroup->name?></td> 
    <td><?= $taskgroup->desc?></td> 
    <td><?= $taskgroup->created_on?></td>    
  </tr>
  <?php }?>
</table>
<hr />

<h3>Create default taskgroups</h3>
<?= form_open('user/tasks/create_default_taskgroup')?>
<table class="table-condensed" width="100%">
  <tr>
    <td>Task Group Name</td>
    <td><input type="text" name="name" value="<?=set_value('name')?>" /></td>
    <td class="text-error"><?= form_error('name')?></td>
  </tr>
  <tr>
    <td>Description</td>
    <td><textarea name="desc"><?=set_value('desc')?></textarea></td>
    <td class="text-error"><?= form_error('desc')?></td>
  </tr>
    <tr>
    <td>&nbsp;</td>
    <td><input type="submit" value="Create Milestone" class="btn btn-info" /></td>
    <td></td>
  </tr>
</table>
</form>


